EMT Practice Test

1. Question Content...


Question List

Question1: Business Manager has the configuration:
* Active Log category is "root"
* Log level of WARN
The code below is executing:
var log = Logger.getLogger("products");
Using this information, which two logs will be written?
Choose 2 answers

Question2: A Digital Developer wants to selectively retrieve products and process them from an iPhone.
Which action should the Developer take, given that JavaScript controllers CANNOT be used?

Question3: A developer set up a new site with Taxation: Net. However, the business requirements changed and the site now needs to be Taxation:Gross. The Business Manager interface does not give this option.
Which sequence of steps is necessary to change the site to gross taxation?

Question4: Given the requirements:
To show the washing Instructions for a clothing product on a dedicated section the detail page Washing instructions come from the product Information manager (PIM) To have this attribute available to localize in the Storefront Which action must these requirements?

Question5: A Digital Developer is working in a sandbox on a site named -est-site using the domain test.demandware.net. The Developer needs to compile a url to make an Open Commerce API (OCAPI) request that returns product information.
By default, which URL format is a proper Open Commerce API for Sandbox?

Question6: A merchant has complained to the developers that some products are not appearing in the storefront and has asked them to diagnose and solve the issue.
Which two factors might be causing a product to be hidden?
Choose 2 answers

Question7: A developer is using logging in scripts to troubleshoot an issue. They are using the dw.system.Log class to write to specific log levels and categories. Which log level is always enabled by default?

Question8: A developer wants to configure multiple products that should only be sold as a group. It should not be possible for buyers to buy these products individually. How should the developer configure the products?

Question9: A Digital Developer is requesting product information for an external integration. The following Open Commerce API (OCAPI) request is NOT functioning correctly:

How should the Developer change the request?

Question10: A client that sells sport shows wants to allow its customers to filer products based on the intended activity (such as tennis, jogging, basketball, etc.) but this particular information is not present in the current catalog.
Which two actions does a developer need to perform in a B2C Commerce instance to allow this two happen?

Question11: An Order Management System (OMS) handles orders from multiple brand specific sites, as part of the processing, the OMS sends the processing detail to be added at notes to the orders in B2C Commerce. These processing details are captured temporarily in custom objects, and are later processed by a batch Job that:
* Processes the custom object to extract the orderid and note data.
* Tries to load the order.
* If the order is not found, it deletes the custom object and moves on.
* If the order is found, it updates notes In the Order, upon successful update of this order, it deletes the custom object.
There is an Issue reported that the job is constantly failing and custom objects are growing in number. On investigating the production look the message below is being logged on each failure:

What are three solution The Architect can take to fix this issue without losing meaningful data?
Choose 3 answers

Question12: The following code ensures that an address ID CANNOT be used if it is already in use by another address in the customer's address book. There is a problem with the code. The error message for an invalid address ID is never shown to the user on the form field.

How should the Digital Developer resolve this issue so that the error message is displayed on the address ID form field?

Question13: An Architect has been asked by the Business to integrate a new payment LINK cartridge. As part of the integration, the Architect has created four new services to access various endpoints in the integration.
How can the Architect move the new services to Production when the integration is ready for launch?

Question14: The Client wants to offer custom made container products on its new B2C Commerce storefront. The Client provided two business requirements.
* Customer can specify container length, width, and height.
* Customer can specify the material that the container is made of.
The Client also provided the Architect a current data schema (shown below) for reference while preparing the technical documentation.

Which two gaps between the requirements and the data schema should the Architect discuss with the Client?
Choose 2 answers

Question15: Which two activities should an Architect encourage the replication team to follow based on S2C Commerce best practices?
Choose 2 answers

Question16: A merchant has a requirement to sell a combination of four existing products with a unique product ID.
This collection will be known as 'Our Top Combo', and is base don the merchant's trading information that shows this combination to be in high demand.
What does the developer need to do next to fulfill this requirement?

Question17: When inspecting the weekly service status report for a critical internally hosted web service used in the application, a developer notices that there are too many instances of unavailability.
Which two solutions can reduce the unavailability of the service?
Choose 2 answers.

Question18: A Digital Developer is requesting product information for an external integration. The following Open Commerce API (OCAPI) request is NOT functioning correctly:

How should the Developer change the request?

Question19: A Digital Developer needs to store information temporarily and decides to create a custom object.
Which code creates a custom object?

Question20: Northern Trail Outfitters (NTO) wants to migrate its online shoo from a custom ecommerce platform to B2C Commerce. NTO needs to migrate several thousands of customer records profile information, address book). WTO can provide a B2C Commerce feed. It is currently using SHA-256 as an encryption mechanism for the customer passwords.
What approach can the Architect propose?

Question21: A developer wants to use an external application to manage their stores information (such as opening hours, and so on), and see their changes in their B2C Commerce Staging instance aas son as they are saved.
What is the appropriate technique the developer should perform to allow the merchant to create a new store in this scenario?

Question22: A Digital Developer wants to selectively retrieve products and process them from an (Phone. Which action should the Developer take, given that JavaScript controllers CANNOT be used?

Question23: Once the Cache Information tool of the storefront toolkit is enabled, how can a Digital Developer view caching information for a particular component of the page?

Question24: A client has two B2C Commerce sites in the same instance: one for the U.S market, the other for the European market. The products they make are sold with different safety certificates based-on the world location.
For example, they sell a smartphone with certificate A in the U.S and certificate B in Europe, a hairdryer with certificate C in the U.S and certificate D in Europe, and more.
How should a developer allow the merchant to display the appropriate certification logo in the produce to details page, depending on the customer's location?

Question25: There is a business requirement that a custom controller in app_custom_my_cartridge invokes the calculateTax(basket) function of the dw, order calculateTex hook that is defined in app_storefront_base. How can the developer implement this call?
A)

B)

C)

Question26: A merchant wants customers to be able to order gift vouchers via their site. Since they can issue an unlimited number of these digital vouchers, this item should be available to sell at all items.
How can a developer use Business Manager to ensure that the gift vouchers are always available?

Question27: The following sample code is NOT providing the desired results. The Digital Developer needs to add an entry to the logs to debug the problem.

Which statement correctly adds a log entry?

Question28: Universal Containers wants to change a content slot that is currently configured to display a content asset. Now they want the slot to display the top five selling boxes for the week.
Which two changes need to be made for this to occur? Choose 2 answers

Question29: A merchant requires that an existing section of the Site become editable from the Business Manager, so that they can modify it independently of the developer.
Which of these is an important factor for a developer to consider when choosing the appropriate solution between a content slot and a Page Designer component?

Question30: A Client has automated builds that deploy the code; however, recent builds started failing with compilation issues, which are not reproducible in developer's environment.
Whet first step needs to be taken to identify and fix the issue?

Question31: Given the following ISML example, how should a developer reference the product object in the current iteration of the basket?
<isloop items ="${pdict.Basket.products}" var="product" status= "loopstatus">
...
</isloop>

Question32: A Digital Developer is working on a project to convert a pipeline to a JavaScript controller. UX Studio has a functioning pipeline debugger configured for the site. Assume the Developer will add a breakpoint to the controller when it is written.
What must be done in order to use the debugger with the new controller when it is written?

Question33: In order to implement site custom functionality, a developer creates a new cartridge.
Which step should the developer take to ensure their cartridge changes take effect?

Question34: The Client is Crowing and decided to migrate its ecommerce website to B2C Commerce. The Client provided the Architect with the f metrics for its existing website over the past 12 months and forecasted into the next year:

Noting these historical metrics and the forecasted growth of 300%, which load test targets meet best practices for testing the new B2C Commerce site?

Question35: The Home-Show route uses this middleware chain:

The developer added Home.;s in another cartridge, which is before the original cartridge in the cartridge path, to extend that route but it does not have the middleware chain:

Assuming the code is correct on both functions, what is the expected result?

Question36: A new version of the Page Show controller is required for implementation of Page Deserter specific look. It requires implementation of a specific, cache period for Page Designer pages, which b not currently available in the base Storefront Reference Architecture (SFRA) cache.js module What two steps should the Architect instruct the developer to implement?
Choose 2 answers

Question37: A developer uses the call() instance method of dw.svc.Service to invoke a web service and implemented the callback methods defined by the dw.avc.ServiceCaliback class.
Which callback method is required only when invoking a SOAP service?

Question38: A developer is remotely fetching the reviews for a product.
Assume that it's an HTTP GET request and caching needs to be implemented, what consideration should the developer keep in mind for building the caching strategy?

Question39: A Digital Developer added a file named MyBusinessController.js in the cartridge named app_project. The project design calls for this new file to override MyBusinessController.js in client_project. The client_project cartridge contains other necessary functionality. Additional functionality is also included in the storefront_core and storefront_controllers cartridges.
Which cartridge path meets the project requirements?

Question40: A developer must configure permissions for an Open Commerce API resource on a sandbox instance that currently does not have any permissions configured.
Which two configuration properties are required to enable Access to the resource?
Choose 2 answers

Question41: A developer customized the Cart-Show controller route with a LINK cartridge that adds social media dat a. There is a new requirement to add a datalayer object to the Cart-Show controller route.
How should the developer achieve this to ensure that no code change will be needed if the client decides to remove the LINK cartridge?

Question42: A developer wants to configure the following products so that same search results ire returned regardless of the search term used. The search term can be bag, purse, pocketbook, and tote. Mow should the developer configure this?

Question43: What is accomplished by the code below?

Question44: A developer cannot create a custom object in Business Manager because the attributes do not show. The developer can view the object but not the attributes.
Which action should the developer take to resolve the problem?

Question45: A developer has these requirements for out-of-stock products:
Save the SKUs of the out-of-stock products that the customer is interested in Save the customer email regardless if the customer is a guest or registered Email the customer when the product is back-in-stock Which step should the developer perform as part of the solution to achieve the requirements?

Question46: A merchant has a new requirement to accept American Express credit cards on its Storefront. A credit card payment method already exists.
Which step must a developer take in Business Manager to achieve this?

Question47: Universal Containers calls the following combination of products "The Basics" and sells the combination as a unique product ID:
* One Model 103 container
* Five Model 611 containers
* Three Model 201 containers
The Developer created these three products in the catalog.
What is the next step in Business Manager to create "The Basics" as a combination?

Question48: A developer cannot create a custom object in Business Manager because the attributes do not show. The developer can view the object but not the attributes.
Which action should the developer take to resolve the problem?

Question49: Universal Containers specifies a new category hierarchy for navigating the digital commerce storefront. A Digital Developer uses Business Manager to manually create a catalog with the specified category hierarchy, then uses the Products & Catalogs > Import & Export module to export the catalog as a file.
How can other Developers with sandboxes on the same realm create the same catalog in their own sandboxes?

Question50: A developer is asked to write a log containing the ID and name of the product with a variable named myProduct.
Which snippet of code should be used?

Question51: A merchant has a requirement to render personalized content to n a category page via a Content Slot that targets VIP high-spending customers during a specific promotional period.
Which two items should the developer create to achieve the specified requirements?
Choose 2 answers:

Question52: A developer is given the requirement to add a step to the existing business logic of the registration process. How should the developer modify the route that handles the customer registration?

Question53: Universal Containers created a site export file from staging in the global export directory. How should the Digital Developer update their sandbox using this staging site export file?

Question54: Given the requirements:
* To integrate with an external web service using HTTP requests
* To create a service for this purpose with the Service framework using the LocalServiceRegistry class.
* To test the service before the external service provider makes the API available Which solution allows the developer to satisfy the requirements?

Question55: A developer is asked to create a new service instance that will call a remote web service.
Which method should the developer use to create the service instance?
A)

B)

C)

Question56: A Digital Developer extends a system object, Product, and adds a Boolean attribute, "sellable," to it.
Assuming "prod" is the variable name handling the product, what code can the Developer use to access it?

Question57: A merchant has reported that customers are seeing low stock items at the top of their search results, giving them a subpar customer experience and impacting conversion.
How might this issue be resolved to ensure a better customer journey?

Question58: A Digital Developer is working on a multi-site realm. A new site requires a different layout for the account landing page. The business logic and data model remain the same. The existing code is in AccountControl.js and accountlanding.isml in the app_storefront cartridge. The app_storefront cartridge contains code for all other business functions. The cartridge path for the new site is currently int_cybersource:int_paypal:app_storefront.
The Developer creates a new cartridge named app_newsite that contains only the accountlanding.isml template for the new site.
Which modification should be made to the new cartridge path?

Question59: A developer wants to use an external application to manage their stores information (such as opening hours, and so on), and see their changes in their B2C Commerce Staging instance aas son as they are saved.
What is the appropriate technique the developer should perform to allow the merchant to create a new store in this scenario?

Question60: Universal Containers wants to change a content slot that is currently configured to display a content asset. Now they want the slot to display the top five selling boxes for the week.
Which two changes need to be made for this to occur? (Choose two.)

Question61: What happens if the log file size limit is reached in custom logging?

Question62: A Digital Developer is asked to optimize controller performance by lazy loading scripts as needed instead of loading all scripts at the start of the code execution.
Which statement should the Developer use to lazy load scripts?

Question63: A Digital Developer noticed that cartridges in their workspace are NOT executing. The Developer confirms that the cartridges are uploaded to the B2C Commerce server connection's target version directory.
Which action potentially solves this problem?

Question64: A Digital Developer needs to check for product inventory in a specific inventory list using the Open Commerce API.
An example request URL is:

Which rescurce_id value enables the appropriate resource?

Question65: Which object type can a developer import using the Merchant Tools > Import $ Export module in Business Manager?

Question66: A retailer notices that the Account Addresses page is showing the wrong shopper's address.
Which tool should the developer start with to identify the issue?

Question67: Given a template rendered by a controller with caching and a remote include without caching, which situation applies?

Question68: Why should a Digital Developer use ProductSearchModel.getProducts() instead of Category.getOnlineProducts() to access products?

Question69: A client has two B2C Commerce sites in the same instance: one for the U.S. market, the other for the European market. They offer free gift wrapping on a selection of products. For each order, five products can be wrapped in the U.S., but only three products can be wrapped in the European region.
How should a developer allow the merchant to independently adjust this number?

Question70: A Digital Developer has created a new PaymentForm controller that requires communication with the server and must be made using the HTTPS protocol.
Which code sample should the Developer use to make sure that HTTPS is used?

Question71: A developer wants to use an external application to manage their stores information (such as opening hours, and so on), and see their changes in their B2C Commerce Staging instance aas son as they are saved.
What is the appropriate technique the developer should perform to allow the merchant to create a new store in this scenario?

Question72: A NewsletterSubscription custom object exists that has a key attribute named email of type String and the following script code.

However, the NewsletterSubscription custom object is not persisted.
What is a possible reason?

Question73: A digital instance has one site, with one master product catalog separate from the site catalog. Some, but NOT all, products in the master catalog are assigned to categories of the site catalog.

Question74: The client provided these business requirements:
* The B2C Commerce platform will integrate with the Client s Order Management System (OMS).
* The OMS supports Integration using REST services.
* The OMS is hosted on the Clients infrastructure.
Whet configurations are needed for this integration with the OMS?

Question75: Reference the following code snippets that allow a form to function correctly.

Which code should a developer insert at the EXPRESSION placeholder m the ISML template snippet above to have the form work as expected?

Question76: A developer is implementing new Page Designer content on a merchant's Storefront and adds the line shown below to the setupCsntentSearch function in the searchHelpers.Js file.
What does this achieve?

Question77: Universal Containers recently completed updates to their storefront shopping cart page. A problem has been discovered since the update. Users are no longer able to submit coupon codes on this page. Additionally, authenticated users who try to add a coupon are logged out.
The following processing code is found in the Cart.js controller file:

What should the Developer verify to identify the issue?

Question78: A client has custom object definition and requirement that occasional data changes in staging also need to exist in production, Which task should the developer perform to meet these requirements when setting up the custom object?

Question79: A client has just pushed a new site live to Production. However during smoke testing. It's found that some customers are not seeing the correct pricing on the Product Detail Page.
What three places would the Architect begin to look for the cause of this Issue?
Choose 3 answers

Question80: A developer is asked to improve the maintainability of a page by reducing its code repetition.
What are two techniques the developer should implement to achieve this?
Choose 2 answers.

Question81: Universal Containers created a site export file from staging in the global export directory.
How should the Digital Developer update their sandbox using this staging site export file?

Question82: A merchant asks a developer to create a Cache Partition for the home page, so that when the home page is edited, only the home page is cleaned.
Given the above requirement, where should the developer create that partition in Business Manager?

Question83: A developer has a sandbox with code to log a message during execution, and the following code:

After the code executes, the developer does not see any log file with the message in the WebDAV folder.
What could the developer do to correct this issue?

Question84: A developer is asked to implement a simple call to an authentication - protected REST web service.
Which configuration is valid?

Question85: Universal Containers has expanded its implementation to support German with a locale code of de. The current resource bundle is checkout.properties.
To which file should the developer add German string values?

Question86: Given the following ISML example, how should a developer reference the product object in the current iteration of the basket?
<isloop items ="${pdict.Basket.products}" var="product" status= "loopstatus">
...
</isloop>

Question87: The following code ensures that an address ID CANNOT be used if it is already in use by another address in the customer's address book. There is a problem with the code. The error message for an invalid address ID is never shown to the user on the form field.

How should the Digital Developer resolve this issue so that the error message is displayed on the address ID form field?

Question88: Which three object types can a developer import using the Merchant Tools > Content > Import & Export module in Business Manager? (Choose three.)

Question89: Universal Containers specifies a new category hierarchy for navigating the digital commerce storefront.
A Digital Developer uses Business Manager to manually create a catalog with the specified category hierarchy, then uses the Products & Catalogs > Import & Export module to export the catalog as a file.
How can other Developers with sandboxes on the same realm create the same catalog in their own sandboxes?

Question90: Which code sample is required to use a custom tag provided in SiteGenesis in an ISML template?

Question91: A Digital Developer adds the following line of code to a script.
dw.system.Logger.getLogger{'login').debug{"Login API has succeeded");
The code executes without error; however, the log file on disk does NOT contain the log message.
Which two actions should be completed to write the log message to disk? Choose 2 answers

Question92: The developer has been given the following business requirement:
The shipping method, Free Standard Ground Shipping' has an exclusion for products *lth category equals or is child of electronics-televisions.' The marketing department has scheduled a sale offering a "Free Standard Ground Shipping" method for brand XyzTv televisions for the next 3 months.
What method accomplishes this while following best practices?

Question93: Business Manager has the configuration:
* Active log category is "root"
* Log level of INFO
The code below execites:
Var log = Logger.getLogger("products","export");
Log.info ("This is important information");
Using this information, what is the beginning of the filename in which the log will be written?

Question94: A developer is writing a server side script that needs to maintain state across calls. The persistent information needed includes these items.
* The current customer
* Whether or not the customer is authenticated
* The privacy attributes (such as tracking consent or cookie policy)
Which technique should the developer use to maintain state in an efficient and scalable manner that follows best practice?

Question95: Refer to the screen shot below:

Given a site called RefArch that has the settings shown, what must be done for RefArch to use the same customer list as RefArchGlobal?

Question96: A developer is given a task to implement a new Page Designer layout component that doesn't accept certain asset components.
How should the developer achieve the above task?

Question97: During a technical review, the Client raises a need to display product pricing on the Product Detail Page (PDP) with discounted values per promotion. The Client notes customers complained of bad user experiences in the past when they would add a product to the basket from the cached PDP and then see a higher price when they started checkout as the promotion had expired.
What should the Architect suggest be implemented for this given that performance should be minimally impact?

Question98: A developer is configuring Payment Methods on a storefront. Which of the following considerations should be kept in rmnd while configuring payment methods,

Question99: A client has a requirement to allow users on the Storefront to filter by a newly created attribute.
After creating the search refinement, what else is necessary to achieve this?

Question100: A Digital Developer needs to check for product inventory in a specific inventory list using the Open Commerce API.
An example request URL is:

Which resource_id value enables the appropriate resource?

Question101: A Digital Developer needs to add a new form to the shopping cart page to allow customers to enter their rewards pass ID. There is already an existing cart.js controller that handles processing of the other cart forms. In addition, a form field node is in the form XML and the necessary form input is present in the ISML template.
The code below is the submit button for the ISML markup.

What additional steps must occur before the Digital Developer can begin writing the processing code for this request?

Question102: The Client currently manages Customers, Inventory, and Product Information with dedicated backend systems as shown In the Systems Diagram below. There is also an external Email Marketing System (EMS) in place. The EMS needs order data to email recommendations to customers using an existing email campaign. These recommendations should be to only send for products that are in stock. The EMS has no access to the backend systems so this data should come from the Salesforce B2C Commerce site.

Which relationships should be added to the Systems Diagram to complete it and fulfill the chant requirements necessary for the email campaign?

Question103: A Digital Developer has a site export file on their computer that needs to be imported into their sandbox. How should the developer update their sandbox with the data in this file?

Question104: Which three techniques improve client-side performance in production while following documented best practices? (Choose three.)

Question105: A developer is checking for Cross Site Scripting (XSS) and found that the quick search is not escaped (allows inclusion of Javascript) in the following script:

How would the developer resolve this issue?

Question106: A developer is tasked with the development of anew Page Designer Page Type, as requested by the merchant.
How should they define the rendering logic of the page?

Question107: A Digital Developer is tasked with setting up a new Digital Server Connection using UX Studio in their sandbox.
Which three items are required to accomplish this task? Choose 3 answers

Question108: The following code ensures that an address ID CANNOT be used if it is already in use by another address in the customer's address book. There is a problem with the code. The error message for an invalid address ID is never shown to the user on the form field.

How should the Digital Developer resolve this issue so that the error message is displayed on the address ID form field?

Question109: A developer has a specification to integrate with a REST API for retrieving traffic conditions. The service expects parameters to be form encoded.
Which service type should the developer register?

Question110: Northern Trail Outfitters (NTO) operate 200 physical stores. NTO has products that are available in some of the physical stores and not available in others. The closest physical store is determined based on customer s post zip code when they are shopping online. Only the products that are available in the customer's closest physical store should be presented to the customer to the search results.
What are the two feasible technical approaches to meet these requirements?
Choose 2 answers

Question111: A client uses tax tables in Business Manager to calculate tax. They recently started shipping to a new country, Italy, and the taxi s not being calculated correctly on the Storefront What is the likely problem?

Question112: Universal Containers needs to have Apple Pay disabled for the country of Spain. Which Business Manager module should the Developer use to meet this requirement?

Question113: a client uses an external marketing toot to manage promotions and coupons for its multiple brands. They currently have only one brand on B2C Commerce and thev get Import-ready feeds created by this tool on en SFTP location.
The marketing team completes the data preparation by the end of the work day.
How should the Architect handle this import?

Question114: Which three operations should be done in a controller?
Choose 3 answers

Question115: A Digital Developer is inspecting the weekly service status report for a critical internally-hosted web service used in the application and notices that there are too many instances of unavailability.
Which two solutions are possible options to reduce the unavailability of the service? Choose 2 answers

Question116: A developer is working on a new site for the U.S based on an existing Canadian site. One of the requirements is a change to the address form. The current Canadian form has an <options> list with the correct two-letter abbreviation for the provinces.
The U.S. requirements are to:
* Have an <options> list with the correct two-letter abbreviation for the states in place of the province field.
* Set the U.S site locale.
* Add the options list field definition to the XML file.
How should the developer set up the files before making the required edits?

Question117: The developer needs to add custom category debug logging into the "contact'' script, to ensure that a third-party service call responds as expected.
Assuming that the logging configurations for the contact category are correctly in place, which line of code should the developer add in the 06 placeholder to meet this requirement?

A)

B)

C)

Question118: A developer has a B2C site and a merchant requirement to add a new locale to it.
What are the steps to enable the locale in the Storefront?

Question119: In Log Center, a developer notes a number of Cross Site Request Forgery (CSRF) log entries. The developer knows that this happens when a CSRF token is either not found or is invalid, and is working to remedy the situation as soon as possible.
Which two courses of action might solve the problem?
Choose 2 answers

Question120: The Client plans to deploy a new payment provider and Order Management System on its existing B2C Commerce website. They have asked an Architect to advise which environment it should use to conduct load testing of its new integrations.
Which environment should be used as the ideal environment for this kind of load test?

Question121: The following sample code is NOT providing the desired results. The Digital Developer needs to add an entry to the logs to debug the problem.

Which statement correctly adds a log entry?